﻿@model KCMS.Areas.Admin.Models.PageEditorModel
@{
    ViewBag.Title = "Страница - Create";
}
<h2>
    Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <div class="editor-label">
            @Html.Label("Категория")
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(m => m.Page.CategoryId, Model.CategoryList)
        </div>
        @Html.EditorFor(m => m.Page)
        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "Index")
</div>
